/*
 * @Author      : ZhouQiJun
 * @Date        : 2024-05-22 20:05:01
 * @LastEditors : ZhouQiJun
 * @LastEditTime: 2024-11-26 17:04:40
 * @Description :
 */
export const menuList = [
  {
    name: '地图初始化',
    value: 'init_map',
    children: [
      {
        name: '二级菜单1',
        value: '2-1',
        children: [
          {
            name: '初始化配置参数',
            value: '3-1',
          },
        ],
      },
      {
        name: '地图控件',
        value: '2-2',
        children: [
          {
            name: '地图控件',
            value: '3-2-1',
          },
          // {
          //   name: '自定义控件',
          //   value: '3-2-2',
          // },
          // {
          //   name: 'Demo3',
          //   value: 'control_demo3',
          // },
        ],
      },
      {
        name: '视图操作',
        value: '2-3',
        children: [
          {
            name: '操作视图',
            value: 'operate_view',
          },
        ],
      },
    ],
  },
  {
    name: '地图事件',
    value: 'map_event',
    children: [
      {
        name: 'map实例相关事件',
        value: 'map_event_1',
        children: [
          {
            name: 'map实例相关事件',
            value: 'map_event_2',
          },
        ],
      },
      {
        name: '鼠标相关',
        value: 'map_event_3',
        children: [
          {
            name: '鼠标移动',
            value: 'map_event_4',
          },
        ],
      },
      {
        name: '键盘相关',
        value: 'map_event_5',
        children: [
          {
            name: '键盘事件',
            value: 'map_event_6',
          },
        ],
      },
      {
        name: '图层相关',
        value: 'map_event_7',
        children: [
          {
            name: '控件事件',
            value: 'map_event_8',
          },
        ],
      },
    ],
  },
  {
    name: '地图控件',
    value: 'controls',
    children: [
      {
        name: '地图控件',
        value: 'controls-1',
        children: [
          {
            name: '地图控件',
            value: 'innerControl',
          },
          // {
          //   name: '自定义控件',
          //   value: 'customControl',
          // },
        ],
      },
    ],
  },
  {
    name: '图层与数据源',
    value: 'layer',
    children: [
      {
        name: '图层分类',
        value: 'layer-2',
        children: [
          {
            name: '图层管理',
            value: 'layerManage',
          },
          {
            name: '栅格图层',
            value: 'rasterLayer',
          },
          {
            name: '矢量图层',
            value: 'vectorLayer',
          },
          {
            name: '地理要素和样式',
            value: 'featureAndStyle',
          },
          {
            name: '瓦片图层',
            value: 'tileLayer',
          },
          {
            name: '非瓦片图层',
            value: 'imageStaticLayer',
          },
        ],
      },
    ],
  },
  {
    value: 'load-geo-data',
    name: '地理数据',
    children: [
      {
        name: '加载地理数据',
        value: 'load-geo-data-1',
        children: [
          {
            name: 'GeoJson',
            value: 'GeoJson',
          },
          {
            name: 'TopoJson',
            value: 'TopoJson',
          },
          {
            name: 'TopoJsonManual',
            value: 'TopoJsonManual',
          },
          {
            name: 'WKT',
            value: 'WKT',
          },
          {
            name: 'WKB',
            value: 'WKB',
          },
          {
            name: 'KML',
            value: 'kml',
          },
          {
            name: 'GPX',
            value: 'gpx',
          },
          {
            name: 'MVT',
            value: 'vectorTile',
          },
        ],
      },
    ],
  },
  {
    value: 'overlay',
    name: '叠加层',
    children: [
      {
        value: 'overlay-demos',
        name: '例子',
        children: [
          {
            value: 'demo1',
            name: '添加覆盖物',
          },
          {
            value: 'draggable-overlay',
            name: '可移动的覆盖物',
          },
        ],
      },
    ],
  },
  {
    value: 'map-interaction',
    name: '地图交互',
    children: [
      {
        value: 'vectorInteraction',
        name: '矢量交互',
        children: [{ value: 'vectorInteraction', name: '矢量交互' }],
      },
      {
        value: 'other',
        name: '其他交互',
        children: [{ value: 'linkAndExtent', name: '链接和extent' }],
      },
      {
        value: 'defaults',
        name: '默认交互',
        children: [
          {
            value: 'defaultInteraction',
            name: '默认交互',
          },
        ],
      },
    ],
  },
  {
    value: 'draw-geometry',
    name: '几何图形',
    children: [
      {
        name: '要素',
        value: 'feature',
        children: [
          {
            name: '线',
            value: 'line',
          },
          // {
          //   name: '面',
          //   value: 'polygon',
          // },
          // {
          //   name: '圆',
          //   value: 'circle',
          // },
          // {
          //   name: '矩形',
          //   value: 'rectangle',
          // },
          // {
          //   name: '点',
          //   value: 'point',
          // },
        ],
      },
      {
        value: 'draw-geometry-1',
        name: '几何图形',
        children: [
          {
            name: '绘制线',
            value: 'drawLine',
          },
          {
            name: '普通绘制',
            value: 'draw-geometry1',
          },
          {
            name: '自由绘制',
            value: 'draw-geometry2',
          },
          {
            name: '编辑几何图形',
            value: 'draw-geometry3',
          },
        ],
      },
    ],
  },
]

export const thirdMenuToComponent = {
  '3-1': {
    position: 'right',
    // 加载远程模块
    // component: () => import('remote_app/HelloWorld'),
    component: () => import('@/components/InitOptions.vue'),
    name: '初始化配置参数',
  },
  '3-2-1': {
    position: 'right',
    component: () => import('@/components/DemoOne.vue'),
    name: '3-2-1',
  },
  '3-2-2': {
    position: 'right',
    component: () => import('@/components/DemoTwo.vue'),
    name: '3-2-2',
  },
  control_demo3: {
    position: 'right',
    component: () => import('@/components/DemoThree.vue'),
    name: 'Demo3',
  },
  demo1: {
    position: 'right',
    component: () => import('@/components/Overlay/AddOverlay.vue'),
    name: '覆盖物',
  },
  'draggable-overlay': {
    position: 'right',
    component: () => import('@/components/Overlay/DraggableOverlay.vue'),
    name: '可移动的覆盖物',
  },
  TopoJson: {
    position: 'right',
    component: () => import('@/components/GeoData/TopoJson.vue'),
    name: 'TopoJson',
  },
  TopoJsonManual: {
    position: 'right',
    component: () => import('@/components/GeoData/TopoJsonManual.vue'),
    name: 'TopoJsonManual',
  },
  GeoJson: {
    position: 'right',
    component: () => import('@/components/GeoData/GeoJson.vue'),
    name: 'GeoJson',
  },
  WKT: {
    position: 'right',
    component: () => import('@/components/GeoData/WKT.vue'),
    name: 'WKT',
  },
  kml: {
    position: 'right',
    component: () => import('@/components/GeoData/KML.vue'),
    name: 'KML',
  },
  gpx: {
    position: 'right',
    component: () => import('@/components/GeoData/GPX.vue'),
    name: 'GPX',
  },
  WKB: {
    position: 'right',
    component: () => import('@/components/GeoData/WKB.vue'),
    name: 'WKB',
  },
  vectorTile: {
    position: 'right',
    component: () => import('@/components/GeoData/VectorTile.vue'),
    name: '矢量瓦片',
  },
  defaultInteraction: {
    position: 'right',
    component: () => import('@/modules/interaction/DefaultInteraction.vue'),
    name: '默认交互',
  },
  vectorInteraction: {
    position: 'right',
    component: () => import('@/modules/interaction/VectorInteraction.vue'),
    name: '矢量交互',
  },
  linkAndExtent: {
    position: 'right',
    component: () => import('@/modules/interaction/LinkAndExtent.vue'),
    name: '其他交互',
  },
  vectorInteraction: {
    position: 'right',
    component: () => import('@/modules/interaction/VectorInteraction.vue'),
    name: '矢量交互',
  },
  drawLine: {
    position: 'right',
    component: () => import('@/components/Geometry/DrawLine.vue'),
    name: '绘制线',
  },
  'draw-geometry1': {
    position: 'right',
    component: () => import('@/components/Geometry/DemoOne.vue'),
    name: '普通绘制',
  },
  'draw-geometry2': {
    position: 'right',
    component: () => import('@/components/Geometry/DemoTwo.vue'),
    name: '自由绘制',
  },
  'draw-geometry3': {
    position: 'right',
    component: () => import('@/components/Geometry/DemoThree.vue'),
    name: '编辑几何图形',
  },
  line: {
    position: 'right',
    component: () => import('@/components/Feature/LineDemo.vue'),
    name: '线',
  },
  operate_view: {
    position: 'right',
    component: () => import('@/components/View/OperateView.vue'),
    name: '操作视图',
  },
  map_event_2: {
    position: 'right',
    component: () => import('@/components/MapEvent/MapEvent.vue'),
    name: 'map实例相关事件',
  },
  layerManage: {
    position: 'right',
    component: () => import('@/components/Layer/LayerManage.vue'),
    name: '图层管理',
  },
  rasterLayer: {
    position: 'right',
    component: () => import('@/modules/source/RasterLayer.vue'),
    name: '栅格图层',
  },
  vectorLayer: {
    position: 'right',
    component: () => import('@/modules/source/VectorLayer.vue'),
    name: '矢量图层',
  },
  featureAndStyle: {
    position: 'right',
    component: () => import('@/modules/layerAndSource/FeatureAndStyle.vue'),
  },
}
